﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace HCQ2_Model.VRDD.InputDto._210908
{
    /// <summary>
    ///  编辑商品类别目录
    /// </summary>
    public class InputEditFolderType: FolderTypeModel
    {    
        /// <summary>
        ///  序号
        /// </summary>
        [Required]
        [RegularExpression("^([1-9][0-9]*)$", ErrorMessage = "请传入正确序号")]
        public int FolderOrder { get; set; }
        /// <summary>
        ///  名称
        /// </summary>
        [Required(ErrorMessage = "FolderName：名称不能为空！")]
        public string FolderName { get; set; }
        /// <summary>
        ///  备注
        /// </summary>
        [Required(ErrorMessage = "FolderNote：备注不能为空！")]
        public string FolderNote { get; set; }
        /// <summary>
        ///  用户编码
        /// </summary>
        [Required(ErrorMessage = "UserID：用户编码不能为空！")]
        public string UserID { get; set; }
    }
    public class FolderTypeModel
    {
        /// <summary>
        ///  目录ID
        /// </summary>
        [Required]
        [RegularExpression("^([1-9][0-9]*)$", ErrorMessage = "请传入正确目录ID")]
        public int FolderID { get; set; }
    }
}